package com.example.algorithm.no0206;

import com.example.algorithm.no0206.solution.SolutionImpl;

/**
 * @Description 解答测试-最长公共前缀
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    public static void main(String[] args) {

        ListNode l1 = new ListNode(1);
        ListNode l12 = new ListNode(2);
        ListNode l123 = new ListNode(3);
        ListNode l1234 = new ListNode(4);
        ListNode l12345 = new ListNode(5);
        l1234.next = l12345;
        l123.next = l1234;
        l12.next = l123;
        l1.next = l12;


        System.out.println("入参: l1: " + ListNode.toStr(l1));

        Solution solution = new SolutionImpl();

        System.out.println(ListNode.toStr(solution.reverseList(l1)));
    }
}
